package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 厂区管理业务对象 t_plant_area
 *
 * @author cyn
 * @date 2024-03-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TPlantAreaBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String pkid;

    /**
     * 编号
     */
    @NotBlank(message = "编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String no;

    /**
     * 负责人
     */
    @NotBlank(message = "负责人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String manager;

    /**
     * 电话
     */
    @NotNull(message = "电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long phone;

    /**
     * 厂区人数
     */
    @NotNull(message = "厂区人数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String num;

    /**
     * 能源类型
     */
    @NotBlank(message = "能源类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String energyType;


}
